<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateYiNewsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('yi_news', function (Blueprint $table) {
             $table->id();
             $table->string('title_zn')->nullable();
            $table->string('images')->nullable();
            $table->string('title_cn')->nullable();
            $table->text('content_cn')->nullable();
            $table->text('content_zn')->nullable();
            $table->text('brief')->nullable();
            $table->string('source')->nullable();
            $table->string('url')->nullable();
            $table->boolean('is_examine')->default(false);
            $table->boolean('is_translate')->default(false);
              $table->text('brief_zn')->nullable();
              $table->dateTime('started_at')->nullable();
              $table->string('thumbnails')->nullable();
             $table->integer('likes')->default(0);
             $table->integer('collections')->default(0);
             $table->string('keywords')->nullable();
             $table->string('mp_biz')->nullable();
             $table->string('mp_article_mid')->nullable();
             $table->string('mp_sn')->nullable();
             $table->string('mp_idx')->nullable();
             $table->integer('views')->default(0);
             $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('yi_news');
    }
}
